package com.esd.device.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.esd.device.entity.DeviceType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface DeviceTypeMapper extends BaseMapper<DeviceType> {
    @Select("SELECT device_type_id FROM `tb_device_type` WHERE device_type_name=#{deviceTypeName}))")
    Long getDeviceTypeIdByName(@Param("deviceTypeName") String deviceTypeName);
}
